//------------------------------------------------------------------------
csINLINE
csReferencedObject::csReferencedObject()
{

}

//------------------------------------------------------------------------
csINLINE
csReferencedObject::~csReferencedObject()
{

}

//------------------------------------------------------------------------
csINLINE void
csReferencedObject::addReference()
{
	m_counter.increment();
}

//------------------------------------------------------------------------
csINLINE void
csReferencedObject::releaseReference()
{
	if(0==m_counter.decrement())
	{
		delete this;
	}
}

//------------------------------------------------------------------------
csINLINE int
csReferencedObject::getReferencedCount() const
{
	return m_counter.getValue();
}